<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{$CANVAS_NAME}</title>
</head>
<body onclick="registerScope();">
{$PLATFORM_JS_HTML}
<img src="{$BG_IMG}" width="100%" style="cursor: pointer;">
</body>
<script type="text/javascript">
    function registerScope() {
        FB.login(function(response) {
            if (response.status == 'connected') {
                top.location.href = "{$REDIRECT_URL}";
            }
        },{
            scope: 'user_friends,publish_actions',
            return_scopes: true
        });
    }
</script>
</html>